home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / vmstat.man < prev    next >
Encoding:
Text File  |  1990-07-30  |  18.4 KB  |  465 lines

  1.  
  2.  
  3.  
  4. VMSTAT                    User Commands                    VMSTAT
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NNAAMMEE
  11.      vmstat - print virtual memory stats
  12.  
  13. SSYYNNOOPPSSIISS
  14.      vvmmssttaatt [--ssvvmmPP] [--tt _i_n_t_e_r_v_a_l] [--TT _m_a_x_S_k_i_p]  [--ll  _l_i_n_e_s]  [--ffpp
  15.      _t_h_r_e_s_h_o_l_d]
  16.  
  17. OOPPTTIIOONNSS
  18.      --ss            Print out statistics about all in-use segments
  19.                    instead of overall vm stats.
  20.  
  21.      --vv            Print  out  extra  information  when  printing
  22.                    overall vm stats.
  23.  
  24.      --tt _i_n_t_e_r_v_a_l   Print out a  line  of  terse  vm  stats  every
  25.                    _i_n_t_e_r_v_a_l seconds.  If _i_n_t_e_r_v_a_l is specified as
  26.                    0 then only a single line is printed.
  27.  
  28.      --mm            Print out the number of modified pages instead
  29.                    of  kernel  stack  pages  when  using  the  --tt
  30.                    option.
  31.  
  32.      --ll _n_u_m_L_i_n_e_s   Print out _n_u_m_L_i_n_e_s lines before  printing  the
  33.                    header  again  when  using the --tt option.  The
  34.                    default is 25 lines.
  35.  
  36.      --ff _t_h_r_e_s_h_o_l_d  Number of page faults per second before should
  37.                    print  out stats with the --tt option.  No lines
  38.                    will be printed  unless  more  than  _t_h_r_e_s_h_o_l_d
  39.                    page  faults occur or the --pp or --TT options are
  40.                    in effect.
  41.  
  42.      --pp _t_h_r_e_s_h_o_l_d  Number of page-outs per second  before  should
  43.                    print  out stats with the --tt option.  No lines
  44.                    will be printed  unless  more  than  _t_h_r_e_s_h_o_l_d
  45.                    page-outs occur or the --ff or --TT options are in
  46.                    effect.
  47.  
  48.      --TT _m_a_x_S_k_i_p    Maximum number of times to skip  printing  out
  49.                    statistics because of the --ff and --pp options.
  50.  
  51.      --PP            Print out statistics since the last time  that
  52.                    they  were  printed, not since the last inter-
  53.                    val.  Used with the --tt option.
  54.  
  55. _________________________________________________________________
  56.  
  57.  
  58. DDEESSCCRRIIPPTTIIOONN
  59.      This command prints out virtual  memory  statistics.   There
  60.      are three possible formats and types of information that are
  61.      printed.  The default is to  print  overall  virtual  memory
  62.  
  63.  
  64.  
  65. Sprite v.1.0         Printed:  July 30, 1990                    1
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. VMSTAT                    User Commands                    VMSTAT
  73.  
  74.  
  75.  
  76.      statistics;  the  volume  of  statistics that are printed is
  77.      controlled by the --vv option.  If the --ss option is  specified
  78.      then statistics about all actively used segments are printed
  79.      instead.  If the --tt option is specified then a terse line of
  80.      information  is  printed  at regular intervals;  the --TTllffppPPmm
  81.      options control how the data is formatted and how  often  it
  82.      is  printed.   The  next  three  sections describe the three
  83.      printing formats in more detail.
  84.  
  85. GGEENNEERRAALL SSTTAATTIISSTTIICCSS
  86.      By default vvmmssttaatt prints out general  statistics  about  the
  87.      virtual  memory  system.  If the --vv option is specified then
  88.      more detailed statistics will be printed.  The normal infor-
  89.      mation  that  is  printed is divided into 5 sections: memory
  90.      use, segment use, page fault statistics, page-out statistics
  91.      and  copy-on-write  activity.   The  memory  use  section is
  92.      titled ``MEMORY STATS'' and contains 6 lines of  information
  93.      with the following titles and information:
  94.  
  95.      _P_a_g_e _S_i_z_e      The logical page size; this is a multiple  of
  96.                     the physical page size.
  97.  
  98.      _M_e_m_o_r_y _S_i_z_e    The amount of physical memory in Kbytes  that
  99.                     is available on the machine.
  100.  
  101.      _K_e_r_n_e_l _M_e_m_o_r_y  The amount of memory in Kbytes that is  being
  102.                     used by the kernel.  There are four pieces of
  103.                     information  on  this  line  (from  left   to
  104.                     right):  the  total  amount of memory used by
  105.                     the kernel, the portion of the total that  is
  106.                     used  for  kernel  code and data, the portion
  107.                     used for kernel stacks and the  portion  that
  108.                     is kept in emergency reserve.
  109.  
  110.      _U_s_e_r _M_e_m_o_r_y    The amount of memory in Kbytes that is  being
  111.                     used  by  user processes.  There are 3 pieces
  112.                     of information on this  line  (from  left  to
  113.                     right):  the  total  amount of memory used by
  114.                     user processes, the portion of the total that
  115.                     is dirty and the portion that is clean.
  116.  
  117.      _F_S _M_e_m_o_r_y      The amount of memory in Kbytes that is  being
  118.                     used  by  the  file  system.  The 3 pieces of
  119.                     information on this line are  (from  left  to
  120.                     right):  the  total  amount of memory used by
  121.                     the file system, the minimum amount of memory
  122.                     that  has  ever  been  used  and  the maximum
  123.                     amount that has been used.
  124.  
  125.      _F_r_e_e _M_e_m_o_r_y    The amount of memory in Kbytes  that  is  not
  126.                     being used by anyone.
  127.  
  128.  
  129.  
  130.  
  131. Sprite v.1.0         Printed:  July 30, 1990                    2
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138. VMSTAT                    User Commands                    VMSTAT
  139.  
  140.  
  141.  
  142.      The second  section  of  statistics  is  entitled  ``SEGMENT
  143.      STATS''.   This  section contains four lines of information,
  144.      one each for active code segments, inactive  code  segments,
  145.      heap  segments and stack segments.  Each contains the number
  146.      of segments of the given type and the amount  of  memory  in
  147.      Kbytes that is being used by the particular type of segment.
  148.  
  149.      The third section of statistics is entitled ``FAULT STATS''.
  150.      The  first  line  contains  the total number of faults.  The
  151.      second line divides the total faults into  the  7  different
  152.      types of faults:
  153.  
  154.      _Z_e_r_o      Pages that are filled with zeroes.
  155.  
  156.      _F_S        Pages that are filled from an object file  in  the
  157.                file system.
  158.  
  159.      _S_w_a_p      Pages that are filled from a swap file.
  160.  
  161.      _Q_u_i_c_k     Page faults that were handled merely by validating
  162.                the page in hardware.
  163.  
  164.      _C_O_W       Copy-on-write faults.
  165.  
  166.      _C_O_R       Copy-on-reference faults.
  167.  
  168.      _C_O_R-_m_o_d   Faults that occured because pages that were filled
  169.                because of copy-on-reference faults were marked as
  170.                read-only.   This  is  done  to  compare  copy-on-
  171.                reference   to   copy-on-write   (see   _v_m_c_m_d  for
  172.                details).
  173.  
  174.      The third line divides the faults into  the  different  seg-
  175.      ments  that  the  faults  occured  in.  The last line is the
  176.      number of faults that collided with another process faulting
  177.      on the same page.
  178.  
  179.      The fourth section which is entitled ``PAGE-OUTS''  contains
  180.      the number of pages that were written to swap space.
  181.  
  182.      The last section is entitled ``COPY-ON-WRITE'' and  contains
  183.      statistics   about   copy-on-write   and   copy-on-reference
  184.      behavior.  The information in this section is  presented  as
  185.      the  number  of faults that occured divided by the number of
  186.      copy-on-write or copy-on-reference  pages.   Statistics  are
  187.      presented  for  both heap and stack segments separately (the
  188.      entries are labeled _H_e_a_p and _S_t_a_c_k respectively) and for the
  189.      sum  of  the  heap  and stack statistics (labeled _T_o_t).  The
  190.      first two  lines  contain  information  about  copy-on-write
  191.      (COW) behavior, the second two about copy-on-reference (COR)
  192.      behavior and the last two about the percentage of pages that
  193.      were  copied  because  of copy-on-reference faults that were
  194.  
  195.  
  196.  
  197. Sprite v.1.0         Printed:  July 30, 1990                    3
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204. VMSTAT                    User Commands                    VMSTAT
  205.  
  206.  
  207.  
  208.      eventually modified (COR-mod).  The  information  about  COW
  209.      behavior  contains  an  additional  statistic  labeled _Q_u_i_c_k
  210.      which is the number of copy-on-write faults that  were  han-
  211.      dled   by  merely  changing  the  protection;  no  copy  was
  212.      required.
  213.  
  214.      When the --vv  option  is  specified  additional  results  are
  215.      presented.   These results are more obscure and are probably
  216.      only of interest to those who understand  the  internals  of
  217.      the  Sprite  virtual  memory  system.   The first additional
  218.      statistic is a measurement of the need for modify  bits  and
  219.      is  given  under the ``MEMORY STATS'' section.  This line of
  220.      statistics which is labeled _M_o_d _p_a_g_e _s_t_a_t_s gives three  bits
  221.      of  information.   The  first entry (labeled _P_o_t-_m_o_d) is the
  222.      number of page frames that were being actively used by  heap
  223.      and stack segments that were taken away from the segment and
  224.      given to another segment; since these segments are writable,
  225.      the  pages  in these segments are potentially modified.  The
  226.      second entry (labeled _N_o_t-_m_o_d) is the number of  potentially
  227.      modified  pages  that  were  clean.  The last entry (labeled
  228.      _N_o_t-_h_a_r_d-_m_o_d) is the number of  potentially  modified  pages
  229.      that  did not have the hardware modify bit set; pages can be
  230.      marked as modified by the virtual memory system (e.g.  zero-
  231.      filled  pages)  even  though they do not have the modify bit
  232.      set by the hardware.
  233.  
  234.      The second extra set of  statistics  is  under  the  ``PAGE-
  235.      OUTS''  section.   The  first  extra  line  which is labeled
  236.      _C_l_e_a_n-_w_a_i_t is the number of times that processes  that  were
  237.      exiting  had  to  wait because a page that they were freeing
  238.      was being cleaned.  The second line labeled  _C_l_e_a_n_e_r  _s_t_a_r_t_s
  239.      is the number of times that a page cleaner was started up to
  240.      write out pages.
  241.  
  242.      The remaining extra statistics that are printed with the  --vv
  243.      option  are  under  entirely  different sections.  The first
  244.      section which is entitled ``ALLOCATION STATS'' gives statis-
  245.      tics  about  the allocation of memory.  The first line which
  246.      is labeled _V_m _a_l_l_o_c_s gives the following  information  (from
  247.      left  to  right):  the total number of pages that were allo-
  248.      cated, the portion of this total that  came  from  the  free
  249.      list,  the  portion  that  came from the file system and the
  250.      portion that came from the allocate list.  The  second  line
  251.      which is labeled _V_M-_F_S _s_t_a_t_s gives statistics about the vir-
  252.      tual memory and file  system  negotiation.   The  first  two
  253.      entries  give the number of times that the file system asked
  254.      the virtual memory system for the age  of  its  oldest  page
  255.      (labeled _F_S-_a_s_k_e_d) and the number of these times that a free
  256.      page was available (labeled _H_a_d-_f_r_e_e-_p_a_g_e).  The second  two
  257.      entries  give the number of pages that the file system added
  258.      to its cache and the number of pages that  it  deleted  from
  259.      its cache (labeled _F_S-_m_a_p and _F_S-_u_n_m_a_p respectively).
  260.  
  261.  
  262.  
  263. Sprite v.1.0         Printed:  July 30, 1990                    4
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270. VMSTAT                    User Commands                    VMSTAT
  271.  
  272.  
  273.  
  274.      The next two lines  of  statistics  under  the  ``ALLOCATION
  275.      STATS''  section  contains  information  about searching the
  276.      memory lists.  The first line gives how many times that  the
  277.      lists  were searched for pages and how many times the memory
  278.      was found on the free list and how many times it  was  found
  279.      on  the  allocation  list  (labeled  _F_r_e_e and _I_n-_u_s_e respec-
  280.      tively).  The second line gives information about why multi-
  281.      ple  iterations  through  the allocation list were required;
  282.      most of the time the first element on the list can be  used.
  283.      This  line  contains  the following information from left to
  284.      right: the total number of extra searches,  the  portion  of
  285.      extra searches that were required because the page frame was
  286.      locked  (labeled  _L_o_c_k),  the  page  frame  was   referenced
  287.      (_l_a_b_e_l_e_d _R_e_f) or the page frame was dirty (_D_i_r_t_y).
  288.  
  289.      The next section of statistics is entitled  ``LIST  STATS''.
  290.      This  section  gives the current number of pages that are on
  291.      each of the four memory list.
  292.  
  293.      The next section is labeled ``PAGE  MAPPING  STATS''.   This
  294.      section  gives  the  number  of  times a process had to wait
  295.      because the fixed number of slots that are used to map  user
  296.      pages  into  the kernel's virtual address spacce were all in
  297.      use.
  298.  
  299.      The last section is entitled ``HARDWARE STATS'' and contains
  300.      information  that depends on the hardware.  For Sun worksta-
  301.      tions it contains statistics about many times one of  the  8
  302.      hardware  contexts had to be taken away from one process and
  303.      given to another and the number of  times  that  a  hardware
  304.      PMEG  had  to  be  taken  away from one segment and given to
  305.      another. For MIPS R2000/R3000 based machines such as DecSta-
  306.      tions,  the number of times TLB pids were stolen from active
  307.      processes is reported.
  308.  
  309. SSEEGGMMEENNTT SSTTAATTIISSTTIICCSS
  310.      When the -_s option is given to vvmmssttaatt then statistics  about
  311.      all  in  use  segments  are printed.  There are 6 columns of
  312.      information:
  313.  
  314.      _S_E_G-_N_U_M             The segment number.
  315.  
  316.      _T_Y_P_E                The type of segment.  The  segment  type
  317.                          can  be  _I_n_a_c_t_i_v_e for inactive code seg-
  318.                          ments or _C_o_d_e, _H_e_a_p  or  _S_t_a_c_k  for  the
  319.                          other three types of segments.
  320.  
  321.      _S_I_Z_E                The total size of the segment's  virtual
  322.                          addres space in Kbytes.
  323.  
  324.      _R_E_S-_S_I_Z_E            The amount of physical  memory  occupied
  325.                          by the segment in Kbytes.
  326.  
  327.  
  328.  
  329. Sprite v.1.0         Printed:  July 30, 1990                    5
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336. VMSTAT                    User Commands                    VMSTAT
  337.  
  338.  
  339.  
  340.      _N_U_M-_R_E_F_S            The  number  of   processes   that   are
  341.                          actively using this segment.
  342.  
  343.      _O_B_J_E_C_T-_F_I_L_E-_N_A_M_E    The name of the  object  file  that  the
  344.                          code  segment  is  being  demand  loaded
  345.                          from.
  346.  
  347.      After the  information  about  each  individual  segment  is
  348.      printed a summary of the segment information is printed.
  349.  
  350. SSTTAATTIISSTTIICCSS AATT RREEGGUULLAARR IINNTTEERRVVAALLSS
  351.      If the --tt _i_n_t_e_r_v_a_l option is given to vvmmssttaatt then a line  of
  352.      terse  statistics  is  printed out at regular intervals.  If
  353.      _i_n_t_e_r_v_a_l is 0 then only  a  single  line  of  statistics  is
  354.      printed.   If  _i_n_t_e_r_v_a_l  is  greater  than  0 then a line of
  355.      statistics is printed out every _i_n_t_e_r_v_a_l seconds.  If the --ff
  356.      _f_a_u_l_t_T_h_r_e_s_h_o_l_d  and/or  --pp _p_a_g_e_o_u_t_T_h_r_e_s_h_o_l_d options are used
  357.      then statistics will be checked every _i_n_t_e_r_v_a_l  seconds  but
  358.      only will be printed out if the number of page faults in the
  359.      last interval is greater than _f_a_u_l_t_T_h_r_e_s_h_o_l_d or  the  number
  360.      of  pageouts  is  greater  than _p_a_g_e_o_u_t_T_h_r_e_s_h_o_l_d.  If the --TT
  361.      _m_a_x_S_k_i_p option is used then statistics will be  printed  out
  362.      at  least  every _m_a_x_S_k_i_p intervals regardless whether or not
  363.      enough page-outs or page faults have occured.
  364.  
  365.      All memory use statistics  are  printed  in  units  of  1024
  366.      bytes.  Each line contains 10 columns of information:
  367.  
  368.      _A_V_A_I_L     The total amount of physical memory available.
  369.  
  370.      _F_R_E_E      The amount of memory that is  not  being  used  by
  371.                anyone.
  372.  
  373.      _U_S_E_R      The amount of memory that is being  used  by  user
  374.                processes.
  375.  
  376.      _K_M_E_M      The amount of memory that is  being  used  by  the
  377.                kernel for code and data.
  378.  
  379.      _K_S_T_K      The amount of memory that is being used for kernel
  380.                stacks.
  381.  
  382.      _F_S$       The size of the file system cache.
  383.  
  384.      _P_F-_N_U_M    The number of page faults that have occured.
  385.  
  386.      _P_F-_S_W_P    The number of page faults that  were  filled  from
  387.                swap space.
  388.  
  389.      _P_F-_F_S     The number of page faults that  were  filled  from
  390.                the file system.
  391.  
  392.  
  393.  
  394.  
  395. Sprite v.1.0         Printed:  July 30, 1990                    6
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402. VMSTAT                    User Commands                    VMSTAT
  403.  
  404.  
  405.  
  406.      _P_O_U_T_S     The number of pages  that  were  written  to  swap
  407.                space.
  408.  
  409.      If the --mm option is specified then the _K_S_T_K column  will  be
  410.      replaced by a column labeled _M_O_D% which contains the percen-
  411.      tage of user memory that is modified.  The number of  kernel
  412.      stack pages will be added into the statistics under the _K_M_E_M
  413.      column.
  414.  
  415.      By default a new column header line will be printed after 25
  416.      lines  of  output.  The --ll _l_i_n_e_s option can be used to force
  417.      the header line to be printed after _l_i_n_e_s  lines  of  output
  418.      are printed.
  419.  
  420.      The number of page faults and page-outs that are printed are
  421.      by  default  the  number  since the last interval.  However,
  422.      many intervals can be skipped  because  of  the  --ff  and  --pp
  423.      options.   The  --PP option will force vvmmssttaatt to print out the
  424.      number of faults and pageouts since the  last  time  that  a
  425.      line was printed instead of since the last interval.
  426.  
  427. KKEEYYWWOORRDDSS
  428.      virtual memory, statistics
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461. Sprite v.1.0         Printed:  July 30, 1990                    7
  462.  
  463.  
  464.  
  465.